<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>立方体</title>
</head>

<body>
    <div class="container">
        <div class="cube">
            <div class="side front" style="background-color: #66CCFF;"></div>
            <div class="side left" style="background-color: #66CCFF;"></div>
            <div class="side right" style="background-color: #66CCFF;"></div>
            <div class="side back" style="background-color: #66CCFF;"></div>
            <div class="side top" style="background-color: #66CCFF;"></div>
            <div class="side bottom" style="background-color: #66CCFF;"></div>
        </div>
    </div>
    <style>
        .container {
            position: relative;
            perspective: 1600px;
            perspective-origin: top right;
            width: 800px;
            height: 800px;
            margin: 50px auto;
            border-radius: 40%;
        }

        .cube {
            position: relative;
            width: 400px;
            height: 400px;
            transform-style: preserve-3d;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            animation: move 20s ease-in-out infinite;
        }

        .side {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.9;
            border: 1px solid #66CCFF;
        }

        .front {
            transform: rotateY(-180deg) translateZ(200px);
            background: url(./images/潜龙长生应紫微.jpg) no-repeat center/contain;
        }

        .back {
            transform: rotateY(180deg) translateZ(-200px);
            background: url(./images/龙震于疆万里宁壤.jpg) no-repeat center/contain;
        }

        .left {
            transform: translateX(-200px) rotateY(-90deg);
            background: url(./images/揽尽天骄襄助一醉.jpg) no-repeat center/contain;
        }

        .right {
            transform: translateX(200px) rotateY(90deg);
            background: url(./images/天音入梦扶摇上穹.jpg) no-repeat center/contain;
        }

        .top {
            transform: translateY(-200px) rotateX(90deg);
            background: url(./images/龙德于昌龙眷于邦.jpg) no-repeat center/contain;
        }

        .bottom {
            transform: translateY(200px) rotateX(-90deg);
            background: url(./images/龙华于旸龙泰于霜.jpg) no-repeat center/contain;
        }

        @keyframes move {
            from {
                transform: translate(-50%, -50%) rotateY(0deg) rotateX(720deg) rotateZ(0deg);
            }

            to {
                transform: translate(-50%, -50%) rotateY(360deg) rotateX(0deg) rotateZ(360deg);
            }
        }
    </style>
</body>

</html>